package org.examples.axis2.service;

import java.util.HashMap;
import java.util.Map;

/**
 * The original code is taken from "Axis2 Quick Start Guide".
 * http://axis.apache.org/axis2/java/core/docs/quickstartguide.html
 * 
 * @author edermengi
 */
public class StockQuoteService
{
    private Map<String, Double> map = new HashMap<String, Double>();

    public Double getPrice( String symbol )
    {
        return map.get( symbol );
    }

    public void update( String symbol, double price )
    {
        map.put( symbol, new Double( price ) );
    }
}